<template>
  <div>
    <div>
      <el-table
        :data="tableData"
        stripe
        style="width: 100%">
        <el-table-column
          prop="name"
          label="姓名"
          width="200">
        </el-table-column>
        <el-table-column
          prop="academic"
          label="学院">
        </el-table-column>
        <el-table-column
          prop="times"
          label="未登记次数">
        </el-table-column>
        <el-table-column
          prop="lastime"
          label="上一次登记时间">
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NosignUser',
  data () {
    return {
      dialogTableVisible: false,
      dialogFormVisible: false,
      form: {
        name:'',
        password:'',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      },
      formLabelWidth: '120px',
      dialogFormVisible: false,
      tableData: []
    }
  },
  created () {
    this.getAllNosign();
  },
  methods:{
    getAllNosign(){
      const nosignList=this.$route.query.table1;
      console.log(nosignList)
      this.tableData=nosignList
    }
  },
  watch: {
// 监测路由变化,只要变化了就调用获取路由参数方法将数据存储本组件即可
    '$route': 'getAllNosign'
  }
}
</script>

<style scoped>

</style>
